﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WithoutStateDemo
{
    class Client
    {
        internal Lift Lift
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }
    
        static void Main(string[] args)
        {
            ILift lift = new Lift();
            //首先电梯门开启，人进去
            lift.Open();
            //然后电梯门关闭
            lift.Close();
            //再然后，电梯开始运行
            lift.Run();
            //最后到达目的地，电梯停止
            lift.Stop();
        }
    }
}
